<?php use_helper('date'); ?>
<div class="cat">
            <img style="vertical-align: top" src="/images/mgen/icon/pastille.png"/><h1><?php echo __('Joueurs') ?></h1>
</div>
<div id="player-list">
    <?php foreach ($sf_guard_users as $player): ?>
    <div class="list-cadre">
        <div class="lf"></div>
        <div class="repeat">
            <div class="col-4">
                <?php echo link_to($player->getPseudo(), "show_player", $player) ?>
            </div>
            <div class="col-6"><?php echo $sf_user->hasPermission("see_hidden_email") ? $player->getEmailAddress()  : '<span class="italic">caché</span>'?></div>
            <div class="col-4"><?php echo format_date($player->getCreatedAt(), "p").' à '.format_date($player->getCreatedAt(), "H:mm") ?></div>
            <div class="col-4">
                <div style="float: right" title="<?php echo $player->isOnline() ? "En ligne": "Hors ligne"?>" class="icon <?php echo $player->isOnline() ? "is-online": "is-offline"?>"></div>
            </div>
        </div>
        <div class="rg"></div>
    </div>
    <br/>
    <?php endforeach; ?>
</div>
